package com.hshx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hshx.dao.ResumeDao;
import com.hshx.pojo.Resume;
import com.hshx.service.ResumeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class ResumeServiceImpl extends ServiceImpl<ResumeDao,Resume> implements ResumeService{

    @Resource
    private ResumeDao dao;


    @Override
    public boolean addResume(Resume resume) {
        //1、简历表新增
        return dao.addResume(resume)>0;
    }

    @Override
    public int getMaxResume() {
        return dao.getMaxResume();
    }

    @Override
    public List<Resume> selAll() {
        return dao.selAll();
    }
}
